package swing;

import javax.swing.*;
import java.awt.*;

/**
 * Created by nuno-rafael-figueiredo on 15-03-2014.
 */
public final class Dialogs {
    private Dialogs() {
    }

    public static void show(Component component) {
        JDialog dialog = new JDialog();

        dialog.getContentPane().add(component);

        dialog.pack();
        dialog.setLocationRelativeTo(null);
        dialog.setVisible(true);
    }
}
